﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using XDeal.BL.Interfaces;
using XDeal.DAL.Implements;
using XDeal.DAL.Entities;

namespace XDeal.BL.Implements
{
    public class OrderStatussBL: IOrderStatuss
    {
        OrderStatussDAO orderStatussDAO = new OrderStatussDAO();
        public OrderStatussBL() { }

        #region GET (Basic)
        /// <summary>
        /// Get All Deal
        /// </summary>
        /// <returns>List of Deals</returns>
        public List<OrderStatuss> GetAll()
        {
            return orderStatussDAO.GetAll();
        }

        /// <summary>
        /// Get Deal by ID
        /// </summary>
        /// <param name="ID">Deal ID</param>
        /// <returns>One Deal</returns>
        public OrderStatuss GetByID(int ID)
        {
            return orderStatussDAO.GetByID(ID);
        }
        #endregion

        #region GET ADVANCE
        #endregion

        #region Insert, Update, Delete
        /// <summary>
        /// Insert OrderStatuss
        /// </summary>
        /// <param name="ob">OrderStatuss Object</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Insert(OrderStatuss bo)
        {
            return orderStatussDAO.Insert(bo);
        }

        /// <summary>
        /// Update OrderStatuss by Object
        /// </summary>
        /// <param name="ob">OrderStatuss Object</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Update(OrderStatuss bo)
        {
            return orderStatussDAO.Update(bo);
        }

        /// <summary>
        /// Delete OrderStatuss by Object
        /// </summary>
        /// <param name="ob">OrderStatuss Object</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Delete(OrderStatuss bo)
        {
            return orderStatussDAO.Delete(bo);
        }

        /// <summary>
        /// Delete By ID
        /// </summary>
        /// <param name="ID">OrderStatuss ID</param>
        /// <returns>True: Successful | False: Fail</returns>
        public bool Delete(int ID)
        {
            return orderStatussDAO.Delete(ID);
        }
        #endregion
    }
}
